/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-03-02 21:31:13
 * @LastEditTime: 2021-03-17 14:13:00
 */
let add = (x, y) => x + y;
let mutli = (x, y) => x * y;

let modulesFiles = require.context('../modules/', true, /\.js$/);
console.log(modulesFiles.keys(), "modulesFiles")
// console.log(modulesFiles.id, "id");
// console.log(modulesFiles.resolve(), "resolve");
const cache = {};
modulesFiles.keys().forEach((key) => {
    let item = modulesFiles(key);
    console.log(item, "item")
    cache[key] = item;
    return cache[key];
})
console.log(cache);
export { add, mutli};
